package order.service.impl;

import order.service.GoodsServiceFeignClient;
import common.model.result.Result;
import common.model.result.ResultCodeEnum;
import common.model.goods.Sku;
import org.springframework.stereotype.Service;


@Service
public class GoodsServiceFeignClientFallback implements GoodsServiceFeignClient {

    @Override
    public Result getSpuById(Long spuId) {
        return Result.failure(ResultCodeEnum.FAIL, "获取商品列表失败");
    }

    @Override
    public Result getSkuById(Long skuId) {
        return Result.failure(ResultCodeEnum.FAIL, "获取商品失败");
    }

    @Override
    public Result updateSku(Sku sku) {
        return Result.failure(ResultCodeEnum.FAIL, "更新商品失败");
    }

}
